{% extends "layout.html" %}

{% block title %}
<title>V2EX  ›  设置</title>
{% endblock %}

{% block main %}
<div class="box">
    <div class="header"><a href="/">V2EX</a> <span class="chevron">&nbsp;›&nbsp;</span> 设置</div>
    <div class="inner">
        {% if message %}
        <div class="message" onclick="$(this).slideUp('fast');">{{ message }}</div>
        {% endif %}
        <form method="post" action="/settings">
        <table cellpadding="5" cellspacing="0" border="0" width="100%">
            <tbody><tr>
                <td width="120" align="right">用户名</td>
                <td width="auto" align="left">{{ current_user.name }} </td>
            </tr>
            <tr>
                <td width="120" align="right">电子邮件</td>
                <td width="auto" align="left"><input type="email" class="sl" name="email" value="{{ current_user.email }}" autocomplete="off"></td>
            </tr>
            <tr>
                <td width="120" align="right">个人网站</td>
                <td width="auto" align="left"><input type="text" class="sl" name="website" value="{{ current_user.website or '' }}" autocomplete="off"></td>
            </tr>
            <tr>
                <td width="120" align="right">所在公司</td>
                <td width="auto" align="left"><input type="text" class="sl" name="company" value="" maxlength="32" autocomplete="off"></td>
            </tr>
            <tr>
                <td width="120" align="right">工作职位</td>
                <td width="auto" align="left"><input type="text" class="sl" name="company_title" value="" maxlength="32" autocomplete="off"></td>
            </tr>
            <tr>
                <td width="120" align="right">所在地</td>
                <td width="auto" align="left"><input type="text" class="sl" name="location" value="{{ current_user.location or '' }}" autocomplete="off"></td>
            </tr>
            <tr>
                <td width="120" align="right">签名</td>
                <td width="auto" align="left"><input type="text" class="sl" name="signature" value="{{ current_user.signature or '' }}" autocomplete="off"></td>
            </tr>
            <tr>
                <td width="120" align="right">个人简介</td>
                <td width="auto" align="left"><textarea class="ml" name="brief">{{ current_user.brief or '' }}</textarea></td>
            </tr>
            <tr>
                <td width="120" align="right">谁可以看我的状态更新</td>
                <td width="auto" align="left"><select name="who_can_view_my_t"><option value="0" selected="selected">所有人</option><option value="1">已登录用户</option><option value="2">只有我自己</option></select></td>
            </tr>
            <tr>
                <td width="120" align="right">社区财富排行榜</td>
                <td width="auto" align="left"><select name="list_rich">

                    <option value="1">参与</option>
                    <option value="0" selected="selected">不参与</option>

                </select>&nbsp; &nbsp; <a href="/top/rich" target="_blank">查看当前排行榜 ›</a></td>
            </tr>
            <tr>
                <td width="120" align="right"></td>
                <td width="auto" align="left"><span class="gray">参与此排行榜将会公开你的个人资产状况。默认是不参与的。</span></td>
            </tr>

            <tr>
                <td width="120" align="right">显示余额</td>
                <td width="auto" align="left"><select name="show_balance">

                    <option value="1" selected="selected">显示</option>
                    <option value="0">不显示</option>

                </select>&nbsp; &nbsp; <a href="/balance" target="_blank">查看我的当前余额 ›</a></td>
            </tr>
            <tr>
                <td width="120" align="right">使用高精度头像</td>
                <td width="auto" align="left"><select name="show_hi_dpi">

                    <option value="1">使用</option>
                    <option value="0" selected="selected">不使用</option>

                </select></td>
            </tr>
            <tr>
                <td width="120" align="right">在首页显示收藏节点</td>
                <td width="auto" align="left"><select name="show_my_nodes">

                    <option value="1" selected="selected">显示</option>
                    <option value="0">不显示</option>

                </select></td>
            </tr>
            <tr>
                <td width="120" align="right">自定义首页跳转位置</td>
                <td width="auto" align="left"><input type="text" class="sl" name="my_home" value="" autocomplete="off"></td>
            </tr>
            <tr>
                <td width="120" align="right">使用自定义 CSS</td>
                <td width="auto" align="left"><select name="use_my_css">

                    <option value="1">使用</option>
                    <option value="0" selected="selected">不使用</option>

                </select></td>
            </tr>
            <tr>
                <td width="120" align="right">自定义 CSS</td>
                <td width="auto" align="left"><textarea class="ml" name="my_css"></textarea></td>
            </tr>
            <tr>
                <td width="120" align="right"><li class="fa fa-unlock"></li>&nbsp; 浏览器连接方式</td>
                <td width="auto" align="left"><select name="always_ssl">

                    <option value="1">永远使用 TLS</option>
                    <option value="0" selected="selected">默认</option>

                </select></td>
            </tr>
            <tr>
                <td width="120" align="right"></td>
                <td width="auto" align="left"><span class="gray">如果开启永远使用 TLS，则在返回首页时，V2EX 会向浏览器发送 max-age 为一周的 HSTS 头来提示浏览器使用 TLS 方式连接。推荐使用最新版本的 Chrome 或者 Firefox 访问。</span></td>
            </tr>
            <tr>
                <td width="120" align="right">偏好正文英文字体</td>
                <td width="auto" align="left"><select name="font" id="fonts" style="width: 322px; display: none;">

                    <option value="Avenir">Avenir</option>

                    <option value="Avenir Next">Avenir Next</option>

                    <option value="Helvetica">Helvetica</option>

                    <option value="Helvetica Neue" selected="selected">Helvetica Neue</option>

                    <option value="Lucida Grande">Lucida Grande</option>

                    <option value="Myriad Pro">Myriad Pro</option>

                    <option value="Segoe UI">Segoe UI</option>

                    <option value="Comic Sans MS">Comic Sans MS</option>

                    <option value="Menlo">Menlo</option>

                    <option value="Panic Sans">Panic Sans</option>

                </select><div class="select2-container" style="width: 322px">    <a href="javascript:void(0)" class="select2-choice">   <span>Helvetica Neue</span><abbr class="select2-search-choice-close" style="display:none;"></abbr>   <div><b></b></div></a>    <div class="select2-drop select2-offscreen">   <div class="select2-search">       <input type="text" autocomplete="off" class="select2-input">   </div>   <ul class="select2-results">   </ul></div></div> &nbsp; <span class="gray"></span></td>
            </tr>
            <tr>
                <td width="120" align="right"></td>
                <td width="auto" align="left"><input type="hidden" value="1" name="show_ads"><input type="hidden" value="66243" name="once"><input type="submit" class="super normal button" value="保存设置"></td>
            </tr>
        </tbody></table>
        </form>
    </div>
</div>

<div class="sep20"></div>

<div class="box">
    <div class="cell"><div class="fr"><a href="#;" onclick="if (confirm('确定要取消当前的头像？')) { location.href = '/settings/avatar/unset?once=66243'; }">取消当前头像</a></div>头像上传</div>
    <div class="cell">
        <table cellpadding="5" cellspacing="0" border="0" width="100%">
            <tbody><tr>
                <td width="120" align="right">当前头像</td>
                <td width="auto" align="left"><img src="/static/img/avatar/19c7/6dfd/211484_large.png" class="avatar" border="0" align="default"> &nbsp; <img src="/static/img/avatar/19c7/6dfd/211484_normal.png" class="avatar" border="0" align="default"> &nbsp; <img src="/static/img/avatar/19c7/6dfd/211484_mini.png" class="avatar" border="0" align="default"></td>
            </tr>
            <tr>
                <td width="120" align="right"></td>
                <td width="auto" align="left"><input type="hidden" value="66243" name="once"><input type="button" onclick="location.href = '/settings/avatar';" class="super normal button" value="上传新头像"></td>
            </tr>
        </tbody></table>
    </div>
    <div class="inner">
    关于头像的规则
    <ul>
        <li>V2EX 禁止使用任何低俗或者敏感图片作为头像</li>
        <li>如果你是男的，请不要用女人的照片作为头像，这样可能会对其他会员产生误导</li>
    </ul>
    </div>
</div>
{% endblock %}